import request from '@/utils/request'

// 查询器械包列表
export function listDevicepackage(query) {
  return request({
    url: '/manage/devicepackage/list',
    method: 'get',
    params: query
  })
}

// 查询器械包详细
export function getDevicepackage(devicePackageId) {
  return request({
    url: '/manage/devicepackage/' + devicePackageId,
    method: 'get'
  })
}

// 新增器械包
export function addDevicepackage(data) {
  return request({
    url: '/manage/devicepackage',
    method: 'post',
    data: data
  })
}

// 修改器械包
export function updateDevicepackage(data) {
  return request({
    url: '/manage/devicepackage',
    method: 'put',
    data: data
  })
}

// 删除器械包
export function delDevicepackage(devicePackageId) {
  return request({
    url: '/manage/devicepackage/' + devicePackageId,
    method: 'delete'
  })
}
